package com.yinhai.message.api.bean;

/**
 * @author maxp 2017年3月15日10:55:13
 */
public class TMUser implements ITMUser {

	private static final long serialVersionUID = 1L;
	private String appId;  //接入系统id
    private String userId; //用户id
    private String pageId;  //同一个人，不同页面的标识
    private String name;   //用户姓名
    private String email;  //用户邮箱账号
    private String sms;    //短信账号
	private String imId;   //im账号id
	private String weChat;   //微信账号
	private String registrationId;    //app注册ID

	/**
	 * 成功标志
	 */
	private String sendSign;
	/**
	 * 失败信息
	 */
	private String errorInfo;
	public TMUser() {
	}

	public TMUser(String name, String email) {
		this.name = name;
		this.email = email;
	}

	public TMUser(String registrationId) {
		this.registrationId = registrationId;
	}

	private String online; //dwr后台 判断是否在线
	public String getAppId() {
		return appId;
	}
	public void setAppId(String appId) {
		this.appId = appId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getPageId() {
		return pageId;
	}
	public void setPageId(String pageId) {
		this.pageId = pageId;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getSms() {
		return sms;
	}
	public void setSms(String sms) {
		this.sms = sms;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getOnline() {
		return online;
	}
	public void setOnline(String online) {
		this.online = online;
	}
	public String getImId() { return imId; }
	public void setImId(String imId){this.imId = imId;}

	public String getRegistrationId() {
		return registrationId;
	}

	public void setRegistrationId(String registrationId) {
		this.registrationId = registrationId;
	}

	public String getWeChat() {
		return weChat;
	}

	public void setWeChat(String weChat) {
		this.weChat = weChat;
	}

	public String getSendSign() {
		return sendSign;
	}

	public void setSendSign(String sendSign) {
		this.sendSign = sendSign;
	}

	public String getErrorInfo() {
		return errorInfo;
	}

	public void setErrorInfo(String errorInfo) {
		this.errorInfo = errorInfo;
	}

}
